package edu.ncsu.helloandroid;

import android.os.Bundle;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.widget.TableLayout;

public class FGCAdvice extends FGCActivity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		TableLayout table = (TableLayout)View.inflate(this, R.layout.advice_table, null);
		table.setStretchAllColumns(true);
        setContentView(table);
		setResult(RESULT_OK);

	}
	
	
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		dismissOnKeyPress(keyCode, event);
		return super.onKeyDown(keyCode, event);
	}
	public boolean onTouchEvent(MotionEvent event) {
		finish();
		return super.onTouchEvent(event);
	}
}
